      

package reittiopas;

/**
 *
 * @author Jaakko
 */
public class SubRoute {

    private Location startLocation;
    private Location destinationLocation;
    private int transportation; //from ReittiopasDefinitions.Transportation
    private int distance;  //in meters
    private int time; //in seconds? or string?

    public SubRoute(Location startLocation, Location destinationLocation, int transportation, int distance, int time) {
        this.startLocation = startLocation;
        this.destinationLocation = destinationLocation;
        this.transportation = transportation;
        this.distance = distance;
        this.time = time;
    }

    public Location getDestinationLocation() {
        return destinationLocation;
    }

    public void setDestinationLocation(Location destinationLocation) {
        this.destinationLocation = destinationLocation;
    }

    public int getDistance() {
        return distance;
    }

    public void setDistance(int distance) {
        this.distance = distance;
    }

    public Location getStartLocation() {
        return startLocation;
    }

    public void setStartLocation(Location startLocation) {
        this.startLocation = startLocation;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public int getTransportation() {
        return transportation;
    }

    public void setTransportation(int transportation) {
        this.transportation = transportation;
    }

    
}
